package com.zenith.zongheng.demo.converter;

import com.zenith.zongheng.demo.domain.dto.LeaveInfoSaveDTO;
import com.zenith.zongheng.demo.domain.dto.LeaveInfoDTO;
import com.zenith.zongheng.demo.domain.entity.LeaveInfo;
import org.mapstruct.Mapper;
import org.mapstruct.Mappings;
import org.springframework.stereotype.Component;

/**
 * <p>
 *
 * </p>
 *
 * @author tangzx
 * @since 2021-12-07
 */
@Mapper(componentModel = "spring")
@Component
public interface LeaveInfoConverter {

    /**
     * dto to object
     * @param dto LeaveInfoDTO
     * @return LeaveInfo entity
     */
    @Mappings({})
    LeaveInfo dto2LeaveInfo(LeaveInfoDTO dto);

    /**
     * dto to object
     * @param dto LeaveInfoSaveDTO
     * @return LeaveInfo entity
     */
    @Mappings({})
    LeaveInfo dto2LeaveInfo(LeaveInfoSaveDTO dto);
}
